//预约挂号管理路由模块
import Layout from '@/layout/layout'
import AppointmentRegister from '@/views/appointment/register/AppointmentRegister.vue'
import AppointmentList from '@/views/appointment/list/AppointmentList.vue'

export default [
  {
    path: '/appointment',
    name: 'appointment',
    component: Layout,
    redirect: '/appointment/reservation',
    meta: {
      title: '预约管理',
      icon: 'excel',
      roles: ['admin', 'doctor', 'nurse']
    },
    children: [
      {
        path: 'reservation',
        name: 'AppointmentRegister',
        component: AppointmentRegister,
        meta: { title: '预约挂号', icon: 'date' }
      },
      {
        path: 'list',
        name: 'appointmentList',
        component: AppointmentList,
        meta: { title: '预约列表', icon: 'tickets' }
      }
    ]
  }
]
// 以上代码是一个 Vue Router 的路由配置文件，主要用于预约挂号管理模块的路由设置。
// 该模块包含三个子路由：预约排班、预约管理和到诊记录。
